//
//  tyconsts.h
//  TianyaQing
//
//  Created by gzty1 on 12-3-5.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//  常量文件

//宏定义
#define NotificationCenter [NSNotificationCenter defaultCenter]

//通知常量
static NSString* const KNotificationMainViewController=@"KNotificationMainViewController";//到主页面
static NSString* const KNotificationRequestContextData=@"KNotificationRequestContextData";//请求当前登录用户的一些上下文数据
static NSString* const KNotificationLogout=@"KNotificationLogout";//注销到登录页面
static NSString* const KNotificationaWillEnterForeground=@"KNotificationaWillEnterForeground";//进入后台的事件通知
static NSString* const KNotificationPushNotification=@"KNotificationPushNotification";//点击推送过来的数据回到软件
static NSString* const KNotificationChangeHeadLogo=@"KNotificationChangeHeadLogo";//修改头像
static NSString* const KNotificationUpdateUserInfo=@"KNotificationUpdateUserInfo";//修改个人资料
static NSString* const KNotificationPushPersoncenterViewController=@"KNotificationPushPersoncenterViewController";//个人中心页面
static NSString* const KNotificationRequestNoteInfoByUrlResponse=@"KNotificationRequestNoteInfoByUrlResponse";//RequestNoteInfoByUrl响应

//其它字符串常量
static NSString* const KKeyRegister=@"register";
static NSString* const KDefaultContentImageName=@"webview_default_icon.png";
static NSString* const KDefaultHeadImageName=@"default_head@2x.png";

//尺寸常量
static const float kScreenWidth=320.0;
static const float kScreenHeight=480.0;
static const float kNavHeight=44.0;
static const float kTabHeight=49.0;
static const float kStatusHeight=20.0;
static const float kADShowTime=10.0;//63.0;

static int getScreenHeight()
{
    return [[UIScreen mainScreen] bounds].size.height;
}

//设备类型
static NSString* const KDeviceType=@"iPhone";
